package com.dy.队列.优先级队列;

public class 进程优先级 {
    public static void main(String[] args) throws Exception{
        PriorityQueue pq = new PriorityQueue();
        pq.offer(new PriorityQData(1,20));
        pq.offer(new PriorityQData(2,30));
        pq.offer(new PriorityQData(3,20));
        pq.offer(new PriorityQData(4,50));
        pq.offer(new PriorityQData(5,40));
        pq.offer(new PriorityQData(6,10));
        pq.display();
    }
}
